package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface CategoryService {

    Boolean save(Category category);

    Page<Category> findByPage(Integer page, Integer pageSize);

    R<String> deleteById(Long id);

    Boolean update(Category category);

    /**
     * 查询所有分类的数据
     * @param o
     * @return
     */
    List<Category> findAll(Object o);

    List<Category> findAllByType(Integer type);

}
